module.exports = {
  data: {
    type: Object,
    default: function () {
      return {
        text: '请在数据管理中设置链接文本及相关属性',
        href: 'http://www.baidu.com'
      }
    },
    name: '文本内容',
    nameTip: '属性解释：\nhref:必需，链接跳转地址\ncontent:链接文本\nhtml:当需要自定义样式时，可用html替换text属性\ntarget:_self—在当前窗口打开链接，_blank—在新窗口打开链接',
    filedType: 'api'
  },

  enableClickEvent: {
    type: Boolean,
    default: false,
    name: '启用单击事件',
    nameTip: '启用后将阻止链接跳转',
    filedType: 'switch'
  },

  lineHeight: {
    type: String,
    default: '20px',
    name: '行高',
    filedType: 'string'
  },

  backgroundColor: {
    type: String,
    default: 'transparent',
    name: '文字背景色',
    filedType: 'color'
  },

  paddingSet: {
    type: String,
    default: '0px',
    name: '边距设置',
    filedType: 'string'
  },

  letterSpacing: {
    type: String,
    default: '',
    name: '字间距',
    filedType: 'string'
  },

  fontFamily: {
    type: Array,
    default: '微软雅黑',
    name: '字体',
    filedType: 'select',
    options: [
      {
        name: '微软雅黑',
        value: 'Microsoft YaHei'
      },
      {
        name: '宋体',
        value: '宋体'
      },
      {
        name: '继承父元素',
        value: 'inherit'
      },
      {
        name: 'Arial',
        value: 'Arial'
      },
      {
        name: 'Helvetica Neue',
        value: 'Helvetica Neue'
      },
      {
        name: 'Helvetica',
        value: 'Helvetica'
      },
      {
        name: '液晶面板',
        value: 'digiface'
      }
    ]
  },

  fontSize: {
    type: String,
    default: '14px',
    name: '字号',
    filedType: 'string'
  },

  fontWeight: {
    type: Boolean,
    default: false,
    name: '显示为粗体',
    filedType: 'switch'
  },

  color: {
    type: String,
    default: '#218fff',
    name: '文本颜色',
    filedType: 'color'
  },

  hoverColor: {
    type: String,
    default: '#1278df',
    name: '文本滑过颜色',
    filedType: 'color'
  },

  shadow: {
    type: String,
    default: 'rgba(0, 0, 0, 0)',
    name: '文本投影色',
    filedType: 'color'
  },

  shadowSize: {
    type: String,
    default: '0px 0px 0px',
    name: '投影的距离大小',
    nameTip: '3个值分别对应水平投影距离，垂直投影距离，高斯模糊半径',
    filedType: 'string'
  },

  align: {
    type: String,
    default: 'left',
    name: '对齐方式',
    nameTip: '两端对齐在至少两行文本时才会生效',
    filedType: 'select',
    options: [
      {
        name: '左对齐',
        value: 'left'
      },
      {
        name: '居中',
        value: 'center'
      },
      {
        name: '右对齐',
        value: 'right'
      },
      {
        name: '两端对齐',
        value: 'justify'
      }
    ]
  },

  rightIcons: {
    type: Array,
    default () {
      return [
      ]
    },
    name: '右侧图标',
    filedType: 'file',
    limit: 1,
    maxSize: 1024
  },

  icons: {
    type: Array,
    default () {
      return [
      ]
    },
    name: '图标',
    filedType: 'file',
    limit: 100,
    maxSize: 1024
  },

  hoverIcons: {
    type: Array,
    default () {
      return [
      ]
    },
    name: '滑过图标',
    filedType: 'file',
    limit: 100,
    maxSize: 1024
  },

  marginIcon: {
    type: String,
    default: '0px',
    name: '图标离底部距离调整',
    filedType: 'string'
  },

  iconHeight: {
    type: String,
    default: '15px',
    name: '图标高度',
    filedType: 'string'
  },

  iconSpacing: {
    type: String,
    default: '',
    name: '图标间距',
    filedType: 'string'
  },

  iconOffsetTop: {
    type: String,
    default: '',
    name: '图标垂直偏移量',
    filedType: 'string'
  },

  clickFn: {
    type: Function,
    default: '',
    name: '单击回调函数',
    nameTip: '第一个参数为组件的文本对象',
    placeholder: 'function handler(link) {\n  \n}',
    filedType: 'function'
  }
}
